<div class="pagetitle">
	<h1>Chi tiết voucher</h1>
</div>
<div class="maincontent">
    
    <div class="contentinner content-dashboard">    
        <p>
        	<label style="font-weight: bold;">Mã voucher</label>
            <span class="field" style="padding-top: 5px;font-size: 20px;font-weight: bold;">
                <b><?php echo $data['code_coupon'];?></b>
                <input name="code_coupon" type="hidden" value="<?php echo $data['code_coupon'];?>" />
            </span>
        </p>
        <!--
		<p>
        	<label style="font-weight: bold;">Mã Coupon QrCode</label>
            <span class="field" style="padding-top: 5px;">
                <?php //echo $data['code_coupon_qrcode'];?>
            </span>
            
        </p>
        <p>
        	<label style="font-weight: bold;">Ảnh QrCode</label>
            <span class="field">
                <img src="<?php //echo $imgbase.$data['img_qrcode'];?>" id="img_incens_show_" style="display: inline-block; vertical-align: middle;width: 100px;height: 95px;border: 1px solid #CCC;background: #CCC;" />
            </span>
        </p>-->
		<p>
        	<label style="font-weight: bold;">Trạng thái</label>
            <span class="field">
                <?php if( $data['active'] == 1 ){echo '<span style="color: rgb(245, 38, 38);">Đã sử dụng</span>';}else{echo '<span style="color: rgb(36, 36, 249);">Chưa sử dụng</span>';}?>
            </span>
        </p>
		<p>
        	<label style="font-weight: bold;">Thành viên</label>
            <span class="field">
                <?php echo $data['fullname'] ? $data['fullname'] : ( $data['username'] ? $data['username'] : 'Đang cập nhật' );?>
            </span>
        </p>
        <p>
        	<label style="font-weight: bold;">Thời gian nhận mã</label>
            <span class="field">
                <?php echo $data['created'] ? date('H:i:s d/m/Y', strtotime($data['created'])) : 'Đang cập nhật';?>
            </span>
        </p>
		
		<?php if( $data['active'] == 1 ){ ?>
		<p>
        	<label style="font-weight: bold;">Thời gian sử dụng</label>
            <span class="field">
                <?php echo $data['time_use'] ? date('H:i:s d/m/Y', strtotime($data['time_use'])) : 'Đang cập nhật';?>
            </span>
        </p>
		
		<?php } ?>
		
    </div>
</div>
<style>
.hr{
    margin: 10px 0px;padding-bottom: 10px !important;width: 98% !important;float: left;text-align: left !important;font-size: 19px;border-bottom: 1px solid #fff;border-bottom: 1px solid #ececef;box-shadow: 0px 1px 0px #FFF;
}
</style>
